
<div id='fi_<?php echo GLCCI::normalizeFiN($field['field_name'],$field['year']) ?>' <?php echo $i == 0 ? "class='formcontain'" : "class='formcontain brk hide'"?>>
<div class="farmform">
<?php echo link_to('Edit Field', "@edit_field?field_id={$field['field_id']}", array('class' => 'edit_btn')) ?>

<!-- FIELD INFORMATION -->

<h1>Field Information</h1>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Field Name</td>
        <td>Field Year</td>
        <td>Acres</td>
        <td>Herbicide Used</td>
        <td>Preceding Crop</td>
        <td>Current Crop</td>
        <td>Date Planted <br /> (month/day/year)</td>
        <td>Lime Applied</td>
    </tr>
    <tr class="tr_two">
        <td class='fn'><?php echo $field['field_name'] ?></td>
        <td class='fy'><?php echo $field['year'] ?></td>
        <td class='int'><?php echo $field['acres'] ?></td>
        <td><?php echo $field['herbicide_used'] ?></td>
        <td><?php echo $field['preceding_crop'] ?></td>
        <td><?php echo $field['current_crop'] ?></td>
        <td class='date'><?php echo date("m/d/Y",$field['date_planted_ts']) ?></td>
        <td><?php echo $field['lime_applied'] ?></td>
            
    </tr>
</table>


<table>
    <tr>
        <td class='note'>Comments</td>
        <td><?php echo nl2br($field['comments']) ?></td>
    </tr>
</table>


<!-- FIELD FERTILITY -->

<h1>Field Fertility</h1>

<table class='tbl' border="0">

    <tr class="tr_one">
        <td>N_PSNT</td>
        <td>Bray P1</td>
        <td>K</td>
        <td>NH<sub>4</sub></td>
        <td>Soil pH</td>
        <td>Buffered pH</td>
    </tr>

    <tr class="tr_two">
        
        <td><?php echo $field['f_N_PSNT'] ?></td>
        <td><?php echo $field['f_brayp1'] ?></td>
        <td><?php echo $field['f_K'] ?></td>
        <td><?php echo $field['f_NH4'] ?></td>
        <td><?php echo $field['f_soilph'] ?></td>
        <td><?php echo $field['f_bufferedph'] ?></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><?php echo nl2br($field['f_comments']) ?></td>
    </tr>
</table>

<!-- NUTRIENTS ADDED -->

<h1>Nutrients Added</h1>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td>N</td>
        <td>P</td>
        <td>K</td>
    </tr>
    <tr class='tr_two'>
        <td><?php echo $field['na_N'] ?></td>
        <td><?php echo $field['na_P'] ?></td>
        <td><?php echo $field['na_K'] ?></td>
    </tr>
</table>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Manure</td>
        <td>Type</td>
        <td><sub>m</sub>N</td>
        <td><sub>m</sub>P</td>
        <td><sub>m</sub>K</td>
    </tr>
    <tr class='tr_two'>
        <td class='xsm'><?php echo $field['na_manure'] ?></td>
        <td><?php echo $field['na_type'] ?></td>
        <td class='int'><?php echo $field['na_mN'] ?></td>
        <td class='int'><?php echo $field['na_mP'] ?></td>
        <td class='int'><?php echo $field['na_mK'] ?></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><?php echo $field['na_comments'] ?></td>
    </tr>
</table>

<!-- COVER CROP -->

<h1>Cover Crop</h1>
<table class='tbl' border="0">
    <tr class="tr_one">
        
        <td>Family</td>
        <td>Used</td>
        <td>Rate</td>
        <td>Seed Cost</td>
        <td>Cost Share</td>
        <td>Planting Method</td>
        <td>Date Planted<br /> (month/day/year)</td>
        <td>Q.S. Fall</td>
        <td>Q.S. Spring</td>
    </tr>

    <tr class="tr_two">
        
       
        <td class='md'><?php echo $field['cc_family'] ?></td>
        <td class='lg'><?php echo $field['cc_used'] ?></td>
        <td class='int'><?php echo $field['cc_rate'] ?></td>
        <td class='int'><?php echo $field['cc_seed_cost'] ?></td>
        <td class='xsm'><?php echo $field['cc_cost_share'] ?></td>
        <td class='lg'><?php echo $field['cc_planting_method'] ?></td>
        <td class='date'><?php echo date("m/d/Y",$field['cc_date_planted_ts']) ?></td>
        <td class='xxs'><?php echo $field['cc_fall_quality'] ?></td>
        <td class='xxs'><?php echo $field['cc_spring_quality'] ?></td>
    </tr>
</table>


<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Termination Method</td>
        <td>Termination Chemical Used</td>
        <td>Carrier</td>
        <td># of Times Sprayed</td>
        <td>Termination Temp</td>
        <td>Termination Weather</td>
        <td>Termination Date<br /> (month/day/year)</td>
        <td>Successful Termination</td>
        <td>Yield</td>
    </tr>

    <tr class="tr_two">
        <td><?php echo $field['cc_term_method'] ?></td>
        <td><?php echo $field['cc_term_chem'] ?></td>
        <td><?php echo $field['cc_carrier'] ?></td>
        <td class='int'><?php echo $field['cc_spray_count'] ?></td>
        <td class='int'><?php echo $field['cc_term_temp'] ?></td>
        <td><?php echo $field['cc_term_weather'] ?></td>
        <td class='date'><?php echo date("m/d/Y",$field['cc_term_date_ts']) ?></td>
        <td><?php echo $field['cc_term_success'] ?></td>
        <td class='int'><?php echo $field['cc_yield'] ?></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><?php echo nl2br($field['cc_comments']) ?></td>
    </tr>
</table>

<!-- CONSERVATION TILLAGE -->

<h1>Conservation Tillage</h1>

<table class='tbl' border="0">
    <tr class="tr_one">
        <td>Tillage Acres</td>
        <td>Previous Tillage</td>
        <td>Current Tillage</td>
    </tr>
    <tr class="tr_two">
        
        <td class='int'><?php echo $field['ct_acres'] ?></td>
        <td><?php echo $field['ct_previous'] ?></td>
        <td><?php echo $field['ct_current'] ?></td>
    </tr>
</table>

<table>
    <tr>
        <td class='note'>Comments</td>
        <td><?php echo nl2br($field['ct_comments']) ?></td>
    </tr>
</table>


<!-- PEST CONTROL -->

<h1>Pest Control</h1>

<table class='tbl' border="0">


    <tr class="tr_one">
        
        <td>Pest</td>
        <td>Threshold</td>
        <td>Method</td>
        <td>Chemical Application Rate</td>
        <td>Application Date<br /> (month/day/year)</td>
    </tr>
    
    
    <tr class="tr_two">
        
        <td><?php echo $field['pc_pest'] ?></td>
        <td><?php echo $field['pc_threshold'] ?></td>
        <td><?php echo $field['pc_method'] ?></td>
        <td><?php echo $field['pc_CAP'] ?></td>
        <td class='date'><?php echo date("m/d/Y",$field['pc_application_date_ts']) ?></td>
    </tr>
</table>


<table>
    <tr>
        <td class='note'>Comments</td>
        <td><?php echo nl2br($field['pc_comments']) ?></td>
    </tr>
</table>

</div>

</div>
